//package lvxu.controller;
//
//import com.github.pagehelper.PageInfo;
//import lvxu.bean.CollectList;
//import lvxu.bean.Msg;
//import lvxu.bean.SongList;
//import lvxu.service.CollectListService;
//import lvxu.service.MusicListService;
//import lvxu.service.SongService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.ArrayList;
//import java.util.List;
//
//@Controller
//public class SongListController {
//    @Autowired
//    SongService songService;
//    @RequestMapping(value = "/songs",method = RequestMethod.GET)
//    @ResponseBody
//    public Msg getSongListInfo(@RequestParam("userid")Integer userid){
//        List<SongList> songList = songService.selectByUserId(userid);
//        PageInfo<SongList> pageInfo = new PageInfo<>(songList);
//        return Msg.success().add("songlist",pageInfo);
//    }
//
//    @RequestMapping(value = "/songs/{del_id}",method = RequestMethod.DELETE)
//    @ResponseBody
//    public void deleteCollectInfo(@PathVariable("del_id") Integer del_id){
//        //1、删除歌单列表里的数据，
//        songService.deleteById(del_id);
//    }
//}
